package repositories

import (
	"gitee.com/kessil/chicory/internal/models"
	"xorm.io/xorm"
)

type AssetRepository struct {
	*Repository[models.Asset]
	db *xorm.Engine
}

func NewAssetRepository(db *xorm.Engine) *AssetRepository {
	return &AssetRepository{
		Repository: NewRepository[models.Asset](db),
		db:         db,
	}
}
